#include<iostream>
#include<map>
using namespace std;
int n;
map<char,int>mp;
int main()
{
	while (cin >> n) {
		if (n == 0) {
			break;
		}
		mp.clear();
		char ch;
		for (int i = 0; i < n; i++) {
			cin >> ch;
			mp[ch]++;
			if (ch == 'B') {
				if (mp['R'] == 7) {
					cout << "Red" << endl;
				}	
				else {
					cout << "Yellow" << endl;
				}
			}
			else if(ch == 'L') {
				if (mp['Y'] != 7) {
					cout << "Red" << endl;
				}
				else {
					cout << "Yellow" << endl;
				}
			}
		}
	}
	
	return 0;
}